﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MODEL.View.Products
{
    public class AddProductRequest
    {
        [Required]
        [DisplayName("系统分类")]
        public int CategoryID { get; set; }
        [Required]
        [DisplayName("SKU")]
        [SkuRegExp]
        public string Code { get; set; }
        [Required]
        [DisplayName("产品名称")]
        public string Name { get; set; }
        [Required]
        [DisplayName("产品说明")]
        [UIHint("MultilineText")]
        public string ProductDesc { get; set; }
        [Required]
        [DisplayName("产品包装")]
        public string ProductPackage { get; set; }
        [Required]
        [DisplayName("翻译语种")]
        public int LanguageTypeID { get; set; }
        [Required]
        [DisplayName("产品主题")]
        public string ProductSubject { get; set; }
        [Required]
        [DisplayName("产品标题")]
        public string ProductTitle { get; set; }
        [Required]
        [DisplayName("产品说明")]
        [UIHint("MultilineText")]
        public string ProductDescription { get; set; }
        [Required]
        [DisplayName("产品包装")]
        public string ProductExplanation { get; set; }
        [Required]
        [DisplayName("关键词")]
        public string KeyWords1 { get; set; }
        [Required]
        public string KeyWords2 { get; set; }
        [Required]
        public string KeyWords3 { get; set; }
        [Required]
        public string KeyWords4 { get; set; }
        [Required]
        public string KeyWords5 { get; set; }
        [Required]
        [DisplayName("卖点")]
        public string BulletPoint1 { get; set; }
        [Required]
        public string BulletPoint2 { get; set; }
        [Required]
        public string BulletPoint3 { get; set; }
        [Required]
        public string BulletPoint4 { get; set; }
        [Required]
        public string BulletPoint5 { get; set; }
        [Required]
        [DisplayName("长(cm)")]
        public decimal Length { get; set; }
        [DisplayName("宽(cm)")]
        [Required]
        public decimal Width { get; set; }
        [DisplayName("高(cm)")]
        [Required]
        public decimal Height { get; set; }
        [DisplayName("周长(cm)")]
        [Required]
        public decimal Girth { get; set; }
        [DisplayName("体积(cm)")]
        [Required]
        public decimal Volume { get; set; }
        [DisplayName("重量(Kg)")]
        [Required]
        public double Weight { get; set; }
        [DisplayName("体积重量(Kg)")]
        [Required]
        public decimal Bulkfactor { get; set; }
        [DisplayName("成本(￥)")]
        [Required]
        public double Cost { get; set; }

        [DisplayName("是否高价值")]
        [Required]
        public bool IsHighValue { get; set; }
        [DisplayName("是否饰品")]
        [Required]
        public bool IsAdorn { get; set; }

        [DisplayName("产品类型")]
        public int ProductTypeID { get; set; }
        [DisplayName("产品状态")]
        public int ProductStatusID { get; set; }
        [DisplayName("产品规格")]
        public int ProductSpecID { get; set; }
        [DisplayName("运输类型")]
        public int TransportType { get; set; }

        [DisplayName("区域仓库")]
        public int DistributeAreaStockID { get; set; }
        [DisplayName("仓库")]
        public string Warehouse { get; set; }
        [DisplayName("违禁品")]
        public string[] ContrabandIdList { get; set; }

        [DisplayName("产品属性")]
        [UIHint("Collection")]
        public ProductProperty[] ProductPropertyArr { get; set; }
        [DisplayName("产品图片")]
        [UIHint("Collection")]
        public ProductPicture[] ProductPictureArr { get; set; }
    } 
}
